import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个年龄：");
        int age = scan.nextInt();
        scan.nextLine();
        System.out.println("请输入一个姓名：");
        String name = scan.nextLine();

        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age);

        scan.close();
    }

    public static void main2(String[] args) {
        /*int num = 1;
        while (num <= 10) {
            System.out.println(num);
            num++;
        }*/
        //求1到100的和
        /*int num = 1;
        int s = 0;
        while (num <= 100) {
            s += num;
            num++;
        }
        System.out.println(s);*/
        //
        int num = 100;
        while (num <= 200) {
            if (num % 3 != 0) {
                num++;
                continue;
            }
            if (num % 4 != 0) {
                num++;
                continue;
            }
            System.out.println(num);
            num++;
        }
        System.out.println("=================");
        int num1 = 100;
        while (num1 <= 200) {
            if (num1 % 3 == 0 && num1 % 4 == 0) {
                System.out.println(num1);
            }
            num1++;
        }
    }

    public static void main1(String[] args) {

        int a = -1;
        if (a >= 10) {
            System.out.println("吃个大鸡腿！！！");
        } else if (a < 5) {
            System.out.println("吃不到鸡腿。。。");
        } else {
            System.out.println("1");
        }
    }
}
